package com.six.work.services;

import com.six.work.entity.Announcement;
import com.six.work.entity.AnnouncementView;

import java.util.List;

public interface AnnouncementServices {

    List<AnnouncementView> findAllAnnouncement();

    Integer DelAnnouncementByID(Integer announcement_id);

    Integer insertAnnouncement(Announcement announcement);

    List<AnnouncementView> findAnnouncementByName(String announcementTitle);

    List<AnnouncementView> findAnnByadIDAndannName(String announcementTitle, Integer admin_id);

    Announcement SelectAnnouncementByID(Integer announcement_id);

    Integer updateAnnouncement(Announcement announcement);
}
